package com.ruoyi.web.domain.mes;


import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.List;

/**
 * 客户信息对象 mes_custom
 *
 * @author levicash
 * @date 2024-01-04
 */
@Data
public class MesCustom extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    private Long id;

    /**
     * 客户编码
     */
    @Excel(name = "客户编码")
    private String code;

    /**
     * 客户名称
     */
    @Excel(name = "客户名称")
    private String name;

    /**
     * 客户类型
     */
    @Excel(name = "客户类型", combo = {"A", "B", "C", "D"}, readConverterExp = "1=A,2=B,3=C,4=D")
    private String ctype;

    /**
     * 客户渠道
     */
    @Excel(name = "客户渠道", combo = {"业务开发", "外协客户"}, readConverterExp = "1=业务开发,2=外协客户")
    private String channel;

    /**
     * 客户简称
     */
    @Excel(name = "客户简称")
    private String shorter;

    /**
     * 所属地区
     */
    @Excel(name = "所属地区")
    private String area;

    /**
     * 所属部门
     */
    @Excel(name = "所属部门")
    private String dept;

    /**
     * 业务专员
     */
    @Excel(name = "业务专员")
    private String person;

    /**
     * 公司电话
     */
    @Excel(name = "公司电话")
    private String tel;

    /**
     * 主联系人
     */
    @Excel(name = "主联系人")
    private String contacts;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    private String phone;

    /**
     * 客户分类
     */
    @Excel(name = "客户分类", combo = {"客户单位", "调拨单位"}, readConverterExp = "1=客户单位,2=调拨单位")
    private String classify;

    /**
     * 状态
     */
    @Excel(name = "状态", combo = {"启用", "停用"}, readConverterExp = "0=启用,1=停用")
    private Integer status;

    /** 总结余 */
    @Excel(name = "总结余")
    private BigDecimal totalAmountArrears;

    /** 废料结算明细信息 */
    private List<MesWastesettle> mesWastesettleDetailList;
}
